// 机构服务
import request from '@/utils/request'
export function productList (params) {
  return request({
    url: '/product/listPageByMixture',
    method: 'get',
    params
  })
}
// 获取分类--树形
export function serverspecList (params) {
  return request({
    url: '/serverspec/list',
    method: 'get',
    params
  })
}
// 机构服务详情
export function getProductById (params) {
  return request({
    url: '/product/getProductById',
    method: 'get',
    params
  })
}
// 查询场馆list
export function siteList (params) {
  return request({
    url: '/site/list',
    method: 'get',
    params
  })
}
// 获取单个服务信息
export function getProdSpecById (params) {
  return request({
    url: '/prodSpec/getProdSpecById',
    method: 'get',
    params
  })
}
// 商品新增
export function productAdd (data) {
  return request({
    url: '/product/add',
    method: 'post',
    data: data
  })
}
// 商品修改
export function productUpdate (data) {
  return request({
    url: '/product/update',
    method: 'post',
    data: data
  })
}

// 获取单个产品视图
export function getProdViewById (params) {
  return request({
    url: '/product/getProdViewById',
    method: 'get',
    params
  })
}
// 商品状态修改
export function productChangeStatus (params) {
  return request({
    url: '/product/changeStatus',
    method: 'get',
    params
  })
}

// 删除产品规格
export function prodSpecDelete (params) {
  return request({
    url: '/prodSpec/delete',
    method: 'get',
    params
  })
}
